//
//  MainViewViewController.m
//  IOSFrameWork
//
//  Created by My Tran on 6/6/14.
//  Copyright (c) 2014 mtoanmy. All rights reserved.
//

#import "MainViewViewController.h"
#import "TableVC.h"
#import "LoginFBVC.h"
#import "ParseJsonVC.h"
#import "AnimationVC.h"
#import "TableMultiViewVC.h"
#import "TimerVC.h"
#import "CircleImgVC.h"
#import "CustomSeekBarVC.h"
#import "CircleRunningProgressBarVC.h"

@interface MainViewViewController ()

@end

@implementation MainViewViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    
    NSLog(@"initWithNibName");
    return self;
}

//- (void)viewWillAppear:(BOOL)animated
//{
//    [self viewWillAppear:animated];
//    NSLog(@"viewWillAppear");
//}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
     NSLog(@"viewDidLoad");
    [self.scrollView addSubview:self.view];
    self.scrollView.contentSize = self.view.bounds.size;
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    
    NSLog(@"didReceiveMemoryWarning");
    // Dispose of any resources that can be recreated.
}

- (IBAction)onLoginFb:(UIButton *)sender
{
    NSLog(@"onLoginFb");
    
    LoginFBVC *vc = [[LoginFBVC alloc] initWithNibName:@"LoginFBVC" bundle:nil];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onAnimation:(UIButton *)sender
{
    NSLog(@"onAnimation");
    
    AnimationVC *vc = [[AnimationVC alloc] initWithNibName:@"AnimationVC" bundle:nil];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onCircleImgView:(UIButton *)sender
{
    NSLog(@"onCircleImgView");
    
    CircleImgVC *vc = [[CircleImgVC alloc] initWithNibName:@"CircleImgVC" bundle:nil];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onCircleRunningProgressBar:(UIButton *)sender
{
    NSLog(@"onCircleRunningProgressBar");
    
    CircleRunningProgressBarVC *vc = [[CircleRunningProgressBarVC alloc] initWithNibName:@"CircleRunningProgressBarVC" bundle:nil];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onCustomSeekbar:(UIButton *)sender
{
    NSLog(@"onCustomSeekbar");
    
    CustomSeekBarVC *vc = [[CustomSeekBarVC alloc] initWithNibName:@"CustomSeekBarVC" bundle:nil];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onParseJson:(UIButton *)sender
{
    NSLog(@"onParseJson");
    
    ParseJsonVC *vc = [[ParseJsonVC alloc] initWithNibName:@"ParseJsonVC" bundle:nil];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onTableMultiView:(UIButton *)sender
{
    NSLog(@"onTableMultiView");
    
    TableMultiViewVC *vc = [[TableMultiViewVC alloc] initWithNibName:@"TableMultiViewVC" bundle:nil];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onTableView:(UIButton *)sender
{
    NSLog(@"onTableView");
    
    TableVC *vc = [[TableVC alloc] initWithNibName:@"TableVC" bundle:nil];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onTimer:(UIButton *)sender
{
    NSLog(@"onTimer");
    
    TimerVC *vc = [[TimerVC alloc] initWithNibName:@"TimerVC" bundle:nil];
    [self.navigationController pushViewController:vc animated:YES];
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return YES;
}

@end
